<%@ Page Language="C#" MasterPageFile="~/Views/Shared/DetailTemplate.master" Inherits="System.Web.Mvc.ViewPage<DotNetBurner.TagListViewData>" %>
<%@ Import Namespace="DotNetBurner" %>
<%@ Import Namespace="Resources" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
    <% var model = ViewData.Model; %>
    <div class="tab">
        <h1><%=Strings.Tags%></h1>
        <span class="sort-links">
            <%=Html.RouteLink(Strings.ByPopularity, "Tags", new RouteValueDictionary {{"sort", "popular"}},
                              new Dictionary<string, object> {{"class", (model.Sort.Equals("popular", StringComparison.InvariantCultureIgnoreCase)) ? "selected" : ""}})%>
            <%=Html.RouteLink(Strings.ByName, "Tags", new RouteValueDictionary { { "sort", "byname" } },
                              new Dictionary<string, object> {{"class", (model.Sort.Equals("byname", StringComparison.InvariantCultureIgnoreCase)) ? "selected" : ""}})%>
        </span>
    </div>
    <div id="tag-list">
        <%=Html.Tags(model.Tags)%>
    </div>
    <%=Html.Pager(model)%>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderPlaceHolder" runat="server">
</asp:Content>
